package servlet;

public abstract class MyServlet {
	public void service(MyRequest request,MyResponse response){
		if(request.getMethod().equals("GET")){
			doGet(request,response);
		}
		else if(request.getMethod().equals("POST")){
			doPost(request,response);
		}
	}
	public void doGet(MyRequest request,MyResponse response){
		
	}
	public void doPost(MyRequest request,MyResponse response){
		
	}

}
